using B.S.RbacData.ErrorCode;
using B.S.RbacData.Read.API.Dtos.Traceabilitys;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace B.S.RbacData.Read.API.Applications.Commands.Traceabilitys
{
    /// <summary>
    /// 根据ID获取产品信息命令
    /// </summary>
    public class GetProductByIdCommand : IRequest<ApiResult<GetProductDtos>>
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        [Required(ErrorMessage = "产品ID不能为空")]
        public int Id { get; set; }
    }
} 